package com.octopus.core.downloader.proxy;

import com.octopus.core.Request;
import lombok.NonNull;

/**
 * 默认下载代理服务器提供
 *
 * @author yang_shoulai@hoperun.com
 * @date 2019/08/03
 */
public class DefaultProxyProvider implements ProxyProvider {

  private Proxy proxy;

  public DefaultProxyProvider(@NonNull Proxy proxy) {
    this.proxy = proxy;
  }

  @Override
  public Proxy provide(Request request) {
    return this.proxy;
  }
}
